qr_factor Function

public pure function qr_factor(a, pivot) result(rst)

Computes the QR factorization of an M-by-N matrix such that either (no pivoting), or (with pivoting).

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The M-by-N matrix to factor.

logical, intent(in), optional :: pivot

An optional parameter used to specifiy if pivoting should be used (true); else, false if no pivoting is used. The default is false such that no pivoting is performed.

Return Value type(qr_factors)

The factored form of the matrix.